﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BookingSite/MasterPage.master" AutoEventWireup="true" CodeFile="Competition.aspx.cs" Inherits="BookingSite_Competition" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <div class="containerB"/></div>
    
    <asp:Panel ID="pnlDetails" runat="server" CssClass="pnlDetails clearfix" Visible="true">
        <div class="formHolder">
            <p>Please fill in the form to enter the competition!</p>
            <asp:Panel ID="pnlErrorMessage" runat="server" class="errorMessage" EnableViewState="false" Visible="false">
                <span>This email address belongs to another user.</span>
            </asp:Panel>
    
            <ul class="formUl">
                <li class="formLi">
                    <asp:Label AssociatedControlID="txtFirstName" CssClass="formLabel" runat="server" ID="lblFirstName" Text="Name" />
                    <asp:TextBox TextMode="SingleLine" ID="txtFirstName" runat="server"/>
                    <asp:RequiredFieldValidator ValidationGroup="vgSubmit" ID="RequiredFieldValidator1" CssClass="formError" runat="server" ControlToValidate="txtFirstName" Display="Dynamic" ErrorMessage="Please Check" />
                </li>
                <li class="formLi">
                    <asp:Label AssociatedControlID="txtSurname"  CssClass="formLabel" runat="server" ID="lblSurname" Text="Surname" />
                    <asp:TextBox TextMode="SingleLine" ID="txtSurname" runat="server"/>
                    <asp:RequiredFieldValidator ValidationGroup="vgSubmit" ID="RequiredFieldValidator2" CssClass="formError" runat="server" ControlToValidate="txtSurname" Display="Dynamic" ErrorMessage="Please Check" />
                </li>
                <li class="formLi">
                    <asp:Label AssociatedControlID="txtEmail" CssClass="formLabel" runat="server" ID="lblEmail" Text="Email" />
                    <asp:TextBox TextMode="SingleLine" ID="txtEmail" runat="server"/>
                    <asp:RegularExpressionValidator ValidationGroup="vgSubmit" ID="valEmailFormat" ControlToValidate="txtEmail"  CssClass="formError" ErrorMessage="Invalid Email" Display="Dynamic" runat="server" ValidationExpression="^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$" />
                    <asp:RequiredFieldValidator ValidationGroup="vgSubmit" ID="RequiredFieldValidator3" runat="server" CssClass="formError" ControlToValidate="txtEmail" Display="Dynamic" ErrorMessage="Please Check" />
                </li>
                <li class="formLi">
                    <asp:CheckBox ID="chkAgree" runat="server" />
                    <asp:Label ID="Label1" AssociatedControlID="chkAgree" runat="server" Text="Please tick this box if you DO NOT wish to be contacted by us about any future special events or promotions at the Harlequin."/>
                </li>
            </ul>
        </div>
        <div class="clearfix" style="padding: 20px 20px 50px;">
            <asp:LinkButton CssClass="btnSubmit" ValidationGroup="vgSubmit" runat="server"  ID="btnSubmit" Text="Book" />
            <asp:HyperLink ID="LinkButton1" NavigateUrl="~/BookingSite/Default.aspx" CssClass="btnHome" runat="server" ImageUrl="~/Templates/BlookingSite/img/btn_home.gif" Text="Home"/>
        </div>
    </asp:Panel>
    
    
    <asp:Panel ID="pnlConfirmation" runat="server" Visible="false" CssClass="pnlConfirmation clearfix">
        <p><strong>Good luck!</strong></p>
        <p>If you win we will be in contanct.</p>
        <asp:HyperLink ID="HyperLink1" NavigateUrl="~/BookingSite/Default.aspx" CssClass="btnHome" runat="server" ImageUrl="~/Templates/BlookingSite/img/btn_home.gif" />
    </asp:Panel>


    <div class="footer"></div>

</asp:Content>

